package com.news.pojo;

import java.io.Serializable;

public class News implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     *新闻id
     */
    private int nid;
    /**
     * 主题id
     */
    private int ntid;
    /**
     *新闻标题
     */
    private String ntitle;
    /**
     * 作者
     */
   private String nauthor;
    /**
     *发表时间
     */
    private String ncreateDate;
    /**
     *新闻图片
     */
    private String npicPath;
    /**
     *新闻内容
     */
    private String ncontent;
    /**
     *修改时间
     */
    private String nmodifyDate;
    /**
     新闻摘要
     */
    private String nsummary;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getNid() {
        return nid;
    }

    public void setNid(int nid) {
        this.nid = nid;
    }

    public int getNtid() {
        return ntid;
    }

    public void setNtid(int ntid) {
        this.ntid = ntid;
    }

    public String getNtitle() {
        return ntitle;
    }

    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }

    public String getNauthor() {
        return nauthor;
    }

    public void setNauthor(String nauthor) {
        this.nauthor = nauthor;
    }

    public String getNcreateDate() {
        return ncreateDate;
    }

    public void setNcreateDate(String ncreateDate) {
        this.ncreateDate = ncreateDate;
    }

    public String getNpicPath() {
        return npicPath;
    }

    public void setNpicPath(String npicPath) {
        this.npicPath = npicPath;
    }

    public String getNcontent() {
        return ncontent;
    }

    public void setNcontent(String ncontent) {
        this.ncontent = ncontent;
    }

    public String getNmodifyDate() {
        return nmodifyDate;
    }

    public void setNmodifyDate(String nmodifyDate) {
        this.nmodifyDate = nmodifyDate;
    }

    public String getNsummary() {
        return nsummary;
    }

    public void setNsummary(String nsummary) {
        this.nsummary = nsummary;
    }
    public String toString(){
        return "nid"+nid+"ntitle"+ntitle+"nauthor"+nauthor+"ncreateDate"+ncreateDate+"npicpath"+npicPath+"ncontent"+ncontent+
                "nmodifyDate"+nmodifyDate+"nsummary"+nsummary;
    }
}
